package cn.net.cfss.fgbp.auth.config;

import cn.net.cfss.fgbp.base.common.GlobalConstants;
import cn.net.cfss.fgbp.base.constant.ErrCodeEnum;
import cn.net.cfss.fgbp.base.except.CodeException;
import cn.net.cfss.fgbp.base.interceptor.AbstractReqInterceptor;
import cn.net.cfss.fgbp.base.interceptor.BaseLogAspect;
import cn.net.cfss.fgbp.base.util.UuidUtil;
import cn.net.cfss.fgbp.log.influxdb.ApiDto;
import cn.net.cfss.fgbp.log.statistics.IStatsdLogService;
import cn.net.cfss.fgbp.log.statistics.LogDtoFactory;
import cn.net.cfss.fgbp.log.util.LogStandardUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;
import java.util.UUID;

@Aspect
@Component
@Slf4j
public class CommLogAspect extends BaseLogAspect {
    @Autowired
    private IStatsdLogService statsdLogService;
    @Pointcut("execution(public * cn.net.cfss.fgbp.auth.controller..*.*(..))")
    public void logPointcut(){

    }

    @Around("logPointcut()")
    public Object logHandler(ProceedingJoinPoint process) throws Throwable{
       return  super.logHandler(process);
    }
}

